@import './base.less';
body {
  background-color: #fafafa;
  //公共类名
  .flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
  }
  // 头部区域
  header {
    .top {
      position: relative;
      height: 34.6667vw;
      background-color: red;
      img {
        width: 100%;
        height: 100%;
      }
      .user {
        display: flex;
        position: absolute;
        left: 3.2vw;
        top: 10.6667vw;
        width: 41.3333vw;
        height: 13.3333vw;
        .left {
          img {
            width: 13.3333vw;
            height: 13.3333vw;
            border-radius: 50%;
          }
        }
        .right {
          margin-left: 4vw;
          color: #c59a46;
          h1 {
            margin-top: 1.6vw;
            font-size: 4.5333vw;
          }
          p {
            margin-top: 2.6vw;
            font-size: 4vw;
          }
        }
      }
    }
    .bottom {
      display: flex;
      height: 23.4667vw;
      padding: 5.3333vw 0;
      background-color: #fff;
      .right {
        width: 26.6667vw;
        border-left: #545454 solid 1px;

        a {
          height: 100%;
          color: rgb(84, 84, 84);
          font-size: 3.7333vw;

          span {
            font-size: 5.8667vw;
          }
        }
      }
      .left {
        display: flex;
        justify-content: space-around;
        flex: 1;
        a {
          height: 100%;

          color: rgb(84, 84, 84);
          font-size: 3.7333vw;
          span {
            margin-top: 5px;
            color: red;
            font-size: 4.5333vw;
          }
        }
      }
    }
  }
  // 主体区域
  .main {
    // 订单区域
    .order {
      display: flex;
      justify-content: space-around;
      margin: 2.6667vw 2.9333vw;
      padding: 2.6667vw 0;
      height: 20.5333vw;
      background-color: #fff;
      a {
        flex: 1;
        height: 100%;
        color: rgb(84, 84, 84);
        font-size: 3.7333vw;

        span {
          margin-top: 2.6667vw;
          font-size: 5.8667vw;
        }
        p {
          text-align: center;
          margin-right: 1.3333vw;
        }
      }
    }
    // 服务区
    .service {
      height: 52vw;
      background-color: #fff;
      margin: 2.9333vw;
      padding: 2.9333vw 0;
      p {
        margin-top: 1.3333vw;
        padding-left: 3.2vw;
        margin-bottom: 2.6667vw;
        font-size: 4vw;
        color: #303133;
      }
      .one {
        display: flex;
        flex-wrap: wrap;
        a {
          width: 25%;
          height: 16.2667vw;

          margin-bottom: 4vw;
          span {
            font-size: 5.8667vw;
            color: red;
            padding: 7px 0;
          }
          p {
            padding-left: 0;
            margin-right: 1.3333vw;
            font-size: 3.7333vw;
            color: #545454;
          }
        }
      }
    }
    //退出登录按钮
    .logout {
      display: flex;
      justify-content: center;
      margin-top: 6.6667vw;
      #mylogout {
        display: none;
        width: 60%;
        margin: 0 auto;
        font-size: 3.7333vw;
        color: #616161;
        border-radius: 2.6667vw;
        border: 1px solid #dcdcdc;
        padding: 2.1333vw 0;
        text-align: center;
      }
    }
    // 弹窗事件
    .care {
      display: none;
      position: fixed;
      z-index: 1001;
      width: 80%;
      max-width: 300px;
      height: 40.5333vw;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      background-color: #fff;
      text-align: center;
      border-radius: 3px;
      overflow: hidden;
      h1 {
        padding: 1em 1.6em 0.3em;
        font-weight: 400;
        font-size: 4.8vw;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      p {
        padding: 1.3em 1.6em 1.3em;
        min-height: 10.6667vw;
        font-size: 4vw;
        line-height: 1.4;
        color: #999;
        max-height: 106.6667vw;
        overflow-x: hidden;
        overflow-y: auto;
      }
      .bottom {
        position: relative;
        line-height: 48px;
        font-size: 18px;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        i {
          width: 100%;
          border-top: 0.5px solid #ddd;
          border-right: 0.5px solid #ddd;
        }
        em {
          width: 100%;
          color: rgb(0, 122, 255);
          border-top: 0.5px solid #ddd;
        }
      }
    }
    // 遮罩
    .mask {
      display: none;
      position: fixed;
      z-index: 1000;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
    }
  }
  // 底部区域
  footer {
    width: 100%;
    position: fixed;
    background-color: rgb(255, 255, 255);
    left: 0;
    bottom: 0;
    z-index: 999;
    height: 13.3333vw;
    display: flex;
    align-items: center;
    text-align: center;
    border-top: black solid 1px;

    a {
      width: 25%;
      color: black;
      font-size: 3.2vw;
      .iconfont {
        font-size: 5.3333vw;
      }
      p {
        margin-top: 1.5vw;
      }
      &.active {
        color: red;
      }
    }
  }
}
